package protocol.transactions;

import protocol.XoneServiceCode;


public class TransactionLoopBack extends XoneBaseTransaction {
    private Object mObj = null;

    public TransactionLoopBack(Object obj) {
        super(TRANSACTION_LOOPBACK);
        this.mObj = obj;
    }

    @Override
    public void onTransact() {
        final Object obj = mObj;
        notifyMessage(XoneServiceCode.TRANSACTION_SUCCESS, obj);
        mObj = null;
    }
}
